package swing.renderer;

import java.lang.reflect.Field;

import javax.swing.JTextField;

public class StringRenderer extends Renderer{
	
	JTextField jtf;
	
	public StringRenderer(Field field, String name, String desctiption, String iconURL, Object initialValue){
		super(field, name, desctiption, iconURL, initialValue);
		jtf = new JTextField(initialValue+"");
		jtf.setToolTipText(description);
		jtf.setName(name);
		add(jtf);
	}

	@Override
	public Object getValue() {
		return jtf.getText();
	}
	

}
